package com.ysx.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yyj
 * @date 2019/5/18
 */
@RestController
public class ProviderContgroller {

    @Value("${server.port}")
    private String port;

    @GetMapping("name")
    public String test(String name) {
        return name + ",port:" + port;
    }
}
